package com.IO.XuLieHuaLiu;

import java.io.FileInputStream;
import java.io.IOException;
import java.io.ObjectInputStream;

public class A02 {
    public static void main(String[] args) throws IOException, ClassNotFoundException {
        // 创建反序列化流对象
        ObjectInputStream ois = new ObjectInputStream(new FileInputStream("untitled\\a.txt"));
        // 读取数据
        Object o = ois.readObject();
        // 输出数据
        System.out.println(o);
        ois.close();
    }
}
